
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Using your functions </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp77.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp79.htm" >Next</A>
<!-- End Header -->
<A NAME="X-REF297023231"></A><h1>Using your functions </h1>
<A NAME="TI2221"></A><p>You use user-defined functions the same way you use built-in
functions. You can call them in event scripts or in other user-defined
functions. </p>
<A NAME="TI2222"></A><p>For complete information about calling functions,
see <i>Application Techniques</i>
.</p>
<A NAME="CDEBAHAH"></A><h4>Pasting user-defined functions</h4>
<A NAME="TI2223"></A><p>When you build a script in the Script view, you can type the
call to the user-defined function. You can also paste the
function into the script. There are four ways to paste a user-defined
function into a script:<A NAME="TI2224"></A>
<ul>
<li class=fi>Drag the function from
the System Tree to the Script view.</li>
<li class=ds>Select Edit&gt;Paste Special&gt;Function&gt;User-defined
from the menu bar.</li>
<li class=ds>Enable AutoScript, select the function's
signature in the list that displays when you pause, and press Tab
or Enter.</li>
<li class=ds>Select the function in the Browser and copy and
paste it into the script.
</li>
</ul>
Using the System
Tree, AutoScript, or the Browser pastes the function's prototype
arguments as well as its name into the script.</p>
<A NAME="TI2225"></A><p>For more information about AutoScript, see <A HREF="pbugp70.htm#BABIEJFG">"Using AutoScript"</A>.</p>
<A NAME="TI2226"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To paste a user-defined function into a script
from the Browser:</p>
<ol><li class=fi><p>Select Tools&gt;Browser from the
menu bar.</p></li>
<li class=ds><p>Do one of the following:<A NAME="TI2227"></A>
<ul>
<li class=fi>Select
a global function from the Function page.</li>
<li class=ds>Select the object that contains the object-level
function you want to paste from the corresponding page (such as
the Window page).
</li>
</ul>

                    </p></li>
<li class=ds><p>Double-click the Functions category in the right
pane.</p></li>
<li class=ds><p>Select the function you want to paste and select
Copy from its pop-up menu.</p></li>
<li class=ds><p>In the Script view, move the insertion point to
where you want to paste the function and select Paste from the pop-up
menu.</p><p>The function and its prototype parameters display at the insertion
point in your script.</p></li>
<li class=ds><p>Specify the required arguments.</p></li></ol>
<br>
